﻿@inherits Project.Module.View.CMS.CMSQuanLyComment
@{
    ViewBag.Title = "Quản lý phản hồi";
    Layout = "~/Views/Backend/Home/_Master.cshtml";
}
<h2>Quản Lý Comment</h2>
<table height="20px"></table>
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    @if (this.listComment != null && this.listComment.Count > 0)
    { 
        <tr>
        <th class="table-header-repeat line-left "><a>Username</a></th>
        <th class="table-header-repeat line-left "><a>Ngày tạo</a></th>
        <th class="table-header-repeat line-left "><a>Nội dung</a></th>
        <th class="table-header-repeat line-left"><a>Danh mục</a></th>
        <th class="table-header-repeat line-left"><a>Bài viết</a></th>
        <th class="table-header-repeat line-left"><a>Xóa</a></th>
        </tr>
        foreach (var item in this.listComment)
        { 
            if(String.IsNullOrEmpty(item.ProductName) == false && String.IsNullOrEmpty(item.CateName) == false)
            { 
            <tr>
            <td>@item.CreatedBy</td>
            <td>@item.CreatedDate.ToString("dd/MM/yyyy")</td>
            <td>@item.Content</td>
            <td>@item.CateName</td>
            <td>@item.ProductName</td>
            <td><a href="/admin/quan-ly-phan-hoi/del?id=@item.FeedbackID">Xóa</a></td>
            </tr>
            }
        }
    }
</table>
<br />
<h2>Thống kê bình luận</h2>
<table height="20px"></table>
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    @if (this.listTopComment != null && this.listTopComment.Count > 0)
    { 
        <tr>
        <th class="table-header-repeat line-left"><a>Bài viết</a></th>
        <th class="table-header-repeat line-left"><a>Số lượng bình luận</a></th>
        </tr>
        foreach (var item in this.listTopComment)
        { 
            if(String.IsNullOrEmpty(item.ProductName) == false && String.IsNullOrEmpty(item.CateName) == false)
            { 
            <tr>
            <td>@item.ProductName</td>
            <td>@item.FeedbackID</td>
            </tr>
            }
        }
    }
</table>
<!--  end product-table................................... -->

